[GWT2] UiBinder work with ToggleButton

Posted by EnToutCas on Stack Overflow See other posts from Stack Overflow or by EnToutCas
Published on 2009-12-23T19:16:49Z Indexed on 2010/04/21 4:33 UTC
Read the original article Hit count: 795

Filed under:
|

I'm liking the new GWT2 UiBinder, however, it's not clear whether certain things are achievable using the declarative UI style.

For instance, ToggleButton only takes the image instances at construction time (no setters for up/down images). As I understand, UiBinder works in a JavaBean-like reflective way, where the assignable attributes are mapped to corresponding setters. Is this style possible with widgets like ToggleButton, where certain attributes have to be specified at construction time?

<g:ToggleButton ui:field="myBtn"></g:ToggleButton>

© Stack Overflow or respective owner

Related posts about gwt

Related posts about uibinder